package com.huitone.gddw.service.dto.business;

import java.util.Date;

import com.huitone.gddw.common.excel.ColToProperty;
import com.huitone.gddw.common.excel.TabCol;
import com.huitone.gddw.utils.DateTimeUtils;

/**
 * 门户短信文件导入 DTO 对象
 * @author wuluodan
 *
 */
public class UploadWebSmDTO {

	@ColToProperty
	@TabCol(Index = 1, title = "序号", width = "30")
	private Integer seq;
	
	private String fileId;
	
	@ColToProperty
	@TabCol(Index = 2, title = "日期", width = "65")
	private String uptimeDate;
	
	@ColToProperty
	@TabCol(Index = 3, title = "导入文件名", width = "120")
	private String fileName;
	
	private String svrNode;
	
	@ColToProperty
	@TabCol(Index = 4, title = "业务端", width = "90")
	private String svrNodeName;
	
	private String serviceCode;
	
	@ColToProperty
	@TabCol(Index = 5, title = "短信类型", width = "90")
    private String serviceName;
	
	@ColToProperty
	@TabCol(Index = 6, title = "发送端口", width = "50")
	private String sendPort;
	
	@ColToProperty
	@TabCol(Index = 7, title = "导入文件类型", width = "75")
	private String fileType;
	
	@ColToProperty
	@TabCol(Index = 8, title = "短信内容", width = "150")
	private String smContent;
	
	@ColToProperty
	@TabCol(Index = 9, title = "导入成功记录", width = "75")
	private Integer okLines;
	
	@ColToProperty
	@TabCol(Index = 10, title = "导入失败记录", width = "75")
    private Integer failLines;
	
	@ColToProperty
	@TabCol(Index = 11, title = "导入操作人", width = "65")
    private String userName;
	
	@ColToProperty
	@TabCol(Index = 12, title = "操作时间", width = "130")
    private Date uptime;
	
	private String auditStatus;
    
    @ColToProperty
	@TabCol(Index = 13, title = "状态", width = "50")
    private String auditStatusStr;
    
    @ColToProperty
	@TabCol(Index = 14, title = "发送短信说明", width = "150")
    private String remark;
    
    private String sendMode;
    
    private String fileFormat;

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	public String getUptimeDate() {
		return this.uptime == null ? "" : DateTimeUtils.dateToStr(this.uptime, "yyyyMMdd");
	}

	public void setUptimeDate(String uptimeDate) {
		this.uptimeDate = uptimeDate;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getSvrNode() {
		return svrNode;
	}

	public void setSvrNode(String svrNode) {
		this.svrNode = svrNode;
	}

	public String getSvrNodeName() {
		return svrNodeName;
	}

	public void setSvrNodeName(String svrNodeName) {
		this.svrNodeName = svrNodeName;
	}

	public String getServiceCode() {
		return serviceCode;
	}

	public void setServiceCode(String serviceCode) {
		this.serviceCode = serviceCode;
	}

	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	public String getSendPort() {
		return sendPort;
	}

	public void setSendPort(String sendPort) {
		this.sendPort = sendPort;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getSmContent() {
		return smContent;
	}

	public void setSmContent(String smContent) {
		this.smContent = smContent;
	}

	public Integer getOkLines() {
		return okLines;
	}

	public void setOkLines(Integer okLines) {
		this.okLines = okLines;
	}

	public Integer getFailLines() {
		return failLines;
	}

	public void setFailLines(Integer failLines) {
		this.failLines = failLines;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getUptime() {
		return uptime;
	}

	public void setUptime(Date uptime) {
		this.uptime = uptime;
	}

	public String getAuditStatus() {
		return auditStatus;
	}

	public void setAuditStatus(String auditStatus) {
		this.auditStatus = auditStatus;
	}

	public String getAuditStatusStr() {
		if (null == this.auditStatus) {
			return "未知";
		}
		if (this.auditStatus.equals("0")) {
			return "待审核";
		}
		if (this.auditStatus.equals("1")) {
			return "审核通过";
		}
		if (this.auditStatus.equals("2")) {
			return "审核不通过";
		}
		return "未知";
	}

	public void setAuditStatusStr(String auditStatusStr) {
		this.auditStatusStr = auditStatusStr;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getSendMode() {
		return sendMode;
	}

	public void setSendMode(String sendMode) {
		this.sendMode = sendMode;
	}

	public String getFileFormat() {
		return fileFormat;
	}

	public void setFileFormat(String fileFormat) {
		this.fileFormat = fileFormat;
	}
	
}
